package com.molin.IOtest.propertiesMap;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        Properties prpo=new Properties();
        prpo.put("zhangsan","123");
        prpo.put("lidi","567");
        prpo.put("liwi","988");

        FileWriter fw=new FileWriter("D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\propertiesMap\\prop.properties");
        fw.close();
        prpo.store(fw,"zhushi");
    }
}
